<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<c:set var="contexto" scope="session" value="${pageContext.request.contextPath}"/>
<fmt:setLocale value="pt-BR" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Login</title>
  </head>
  <body>
    <h1>Login</h1>
    <form:form action="login.do" commandName="usuario">
      <fieldset>
        <table>
          <tr><th>Login</th><td><input type="text" name="txtlogin" size="20"/></td></tr>
          <tr><th>Senha</th><td><input type="password" name="txtsenha" size="20"/></td></tr>
        </table>
        <input name="submit" type="submit" value="Login" />
        <a href="javascript:history.go(-1)">Voltar</a><br/><br/>
        <a href="${contexto}/usuario/cadastro.do">Ainda n&atilde;o &eacute; cadastrado?</a>
      </fieldset>
    </form:form>
  </body>
</html>
